package org.jeecg.modules.demo.notify;

import lombok.Data;

@Data
public class NotifyBuilder implements INotifyBuilder{
   public static <T extends NotifyBuilder> T ofType(Class<T> platform) {
      try {
         return platform.newInstance();
      } catch (InstantiationException e) {
         throw new RuntimeException(e);
      } catch (IllegalAccessException e) {
         throw new RuntimeException(e);
      }
   }
}
